package com.zhenwei.zscm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zhenwei.zscm.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "role_auth", autoResultMap = true)
@Data
public class RoleAuthEntity extends BaseEntity {
    private String role;
    private String roleName;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<MenuEntity> authMenu;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<ApiInfoEntity> authApi;
}
